package com.zu.commu.context;

import com.zu.commu.interf.gprs.Engine;
import com.zu.commu.interf.meter.Driver;

public class Config
{
  public static Config instance()
  {
    return new Config();
  }

  public String getMeterProcotolOfGPRSID(String id)
  {
    return (String)ServerContext.GPRSID_meterProtocol.get(id);
  }

  public Driver getDriverOfMeterProtocol(String protocol)
  {
    return (Driver)ServerContext.meterProtocol_Drivers.get(protocol);
  }

  public String getGPRSProcotolOfGPRSID(String id)
  {
    return (String)ServerContext.GPRSID_GPRSProtocol.get(id);
  }

  public Engine getDriverOfGPRSProtocol(String protocol)
  {
    return (Engine)ServerContext.GPRSProtocol_Drivers.get(protocol);
  }
}